import org.opencv.core.Core;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86185
 * Date: 2023-04-04
 * Time: 18:47
 */
class Person {

}
class Student extends Person {

}
public class Test {
    static {
        System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
    }
    public static void main(String[] args) {
        System.out.println(Core.VERSION);
    }
    public static void main5(String[] args) {
        ArrayList<String> arrayList = new ArrayList<>();
        arrayList.add("abc");
        arrayList.add("def");
        arrayList.add("123");
        System.out.println(arrayList);
        for (int i = 0; i < arrayList.size(); i++) {
            System.out.println(arrayList.get(i) + " ");
        }
        for (String s : arrayList) {
            System.out.println(s + " ");
        }
        Iterator<String> iterator = arrayList.listIterator();
        while(iterator.hasNext()) {
            System.out.print(iterator.next() + " ");
        }
    }
    public static void main3(String[] args) {
        ArrayList<Student> students = new ArrayList<>();
        List<Person> people = new ArrayList<>(students);
    }
    public static void func(String str1, String str2) {
        ArrayList<Character> arrayList = new ArrayList<>();
        for (int i = 0; i < str1.length(); i++) {
            char ch = str1.charAt(i);
            if(!str2.contains(ch+"")) {
                arrayList.add(ch);
            }
//            int flag = 0;
//            for (int j = 0; j < str2.length(); j++) {
//                if (str1.charAt(i) == str2.charAt(j)) {
//                    flag = 1;
//                    break;
//                }
//            }
//            if(flag == 0) {
//                arrayList.add(String.valueOf(str1.charAt(i)));
//            }
        }
        System.out.println(arrayList);
    }

    public static void main2(String[] args) {
        func("welcome to bit","come");
    }
    public static void main1(String[] args) {
        ArrayList<Integer> arrayList = new ArrayList<>(10);
        List<String> list = new ArrayList<>();
        list.add("hello");
        Iterator<String> it = list.listIterator();
        while (it.hasNext()) {
            System.out.println();
        }
    }
}
